cmdshell.cmd.sudo = {
	help : 'sudoers for ruby tutorials',
	run : function(res){
		cmdshell.debuger('[CMD] Sudo is running');
		
		var arr = res.split(" "), dataout = '...';
		
		if(!arr[1]){
			return 'Guest is not in the sudoers file. This incident will be reported.';
		}else{
			if(arr[1]=="apt-get"&&arr[2]=="install"&&arr[3]=="ruby1.9.1-full"){
					$.get('cmdout/installruby_out.txt', function(data) {
						$('.cmdout pre').last().html(data);
						 $('.mod-console .content').prop('scrollTop', $('.mod-console .content').prop('scrollHeight'));
					});
				return '...';
			}else{
				return 'Guest is not in the sudoers file. This incident will be reported.';			
			}
		}
	}
}

